﻿// LightNet - Lightweight .NET Framework
// Copyright (c) 2010 http://lightnet.codeplex.com

namespace System.Reflection
{
    using System.Runtime.InteropServices;

    /// <summary>
    /// Specifies the version of the assembly being attributed.
    /// </summary>
    [ComVisible(true), AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
    public sealed class AssemblyVersionAttribute : Attribute
    {
        /// <summary>
        /// Gets the version number of the attributed assembly.
        /// </summary>
        /// <returns>A string containing the assembly version number.</returns>
        public string Version { get; private set; }

        /// <summary>
        /// Initializes a new instance of the AssemblyVersionAttribute class with the version number of the assembly being attributed.
        /// </summary>
        /// <param name="version">The version number of the attributed assembly.</param>
        public AssemblyVersionAttribute(string version)
        {
            Version = version;
        }
    }
}
